﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Eleanor.DAL;

namespace Eleanor.BLL
{
    public class UserBLL
    {
        protected UserDAL userDAL = new UserDAL();

        public dynamic GetByName(string userName)
        {
            return userDAL.Select(userName);
        }

        public List<dynamic> GetAll()
        {
            return userDAL.SelectAll();
        }

        public int Add(dynamic user)
        {
            return userDAL.Insert(user);
        }
        public bool Delete(int userId)
        {
            return userDAL.Delete(userId);
        }

        public int UpdatePassword(dynamic user)
        {
            return userDAL.UpdatePassword(user);
        }
    }
}
